package org.dxw.common.enums;

import javafx.scene.input.KeyCodeCombination;
import lombok.Getter;

/**
 * @description:
 * @author: dxw
 * @create: 2022-04-04 23:39
 **/
@Getter
public enum GlobalResultEnum {

    SUCCESS("20000", "操作成功"),
    ERROR("50000", "系统异常"),
    //其他异常
    PARAM_ERR("40001", "参数错误"),
    //业务异常
    BUSI_COMMON("40001", "业务异常")
    //其他的具体的业务异常可以写在下面


    ;



    private String code;

    private String msg;

    GlobalResultEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}